#include "../../include/mysql_tool.h"
int mysql_tool::enroll_query(string user_name, string user_password)
{
    string sql_sentence = "insert into user values (null,'','',null);";
    sql_sentence.insert(31, user_name);
    sql_sentence.insert(34 + user_name.size(), user_password);
    int status = mysql_query(&mysql, sql_sentence.c_str());
    if (status != 0)
    {
        cout << "sql语句执行失败" << endl;
        return 0;
    }
    else
    {
        return 1;
    }
    return 0;
}